package com.moxiao.yfjh.module.order.controller.admin.brokeragewithdraw.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

import org.springframework.format.annotation.DateTimeFormat;

import static com.moxiao.yfjh.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 相亲佣金提现 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BlindBrokerageWithdrawBaseVO {

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25392")
    @NotNull(message = "用户编号不能为空")
    private Long userId;
    /**
     * 提现流水号
     */
    private String no;

    @Schema(description = "提现金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "31509")
    @NotNull(message = "提现金额不能为空")
    private BigDecimal price;
    /**
     * 提现手续费
     */
    private BigDecimal feePrice;

    private BigDecimal totalPrice;
    /**
     * 提现类型：1-微信；2-支付宝
     */
    @Schema(description = "提现类型：1-微信；2-支付宝", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "提现类型：1-钱包；2-银行卡；3-微信；4-支付宝不能为空")
    private Byte type;

    @Schema(description = "真实姓名", example = "芋艿")
    private String name;

    @Schema(description = "账号")
    private String accountNo;

    @Schema(description = "银行名称", example = "赵六")
    private String bankName;

    @Schema(description = "开户地址")
    private String bankAddress;

    @Schema(description = "收款码", example = "https://www.iocoder.cn")
    private String accountQrCodeUrl;

    /**
     * 状态：0-审核中，10-审核通过 20-审核不通过；预留：11 - 提现成功；21-提现失败
     */

    private Byte status;
    /**
     * 审核驳回原因
     */
    private String auditReason;

    @Schema(description = "审核时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime auditTime;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}
